<?php

namespace App\Models;

class EwNewsTopic extends BaseModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=20, nullable=false)
     */
    public $id;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=false)
     */
    public $topic_id;

    /**
     *
     * @var string
     * @Column(type="string", length=128, nullable=false)
     */
    public $program;

    /**
     *
     * @var string
     * @Column(type="string", length=64, nullable=false)
     */
    public $ids;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=false)
     */
    public $order_by;

    // /**
    //  * Initialize method for model.
    //  */
    // public function initialize()
    // {
    //     $this->setSchema("ew_news");
    // }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'ew_news_topic';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return EwNewsTopic[]|EwNewsTopic
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return EwNewsTopic
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
